package org.springframework.samples.mvc.basic.proizvodenPogon;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.samples.mvc.basic.controller.CRUDController;
import org.springframework.samples.mvc.basic.model.UIFormModel;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/proizvodenPogonView")
public class ProizvodenPogonController extends CRUDController<ProizvodenPogonView> {

	@Autowired
	public ProizvodenPogonController(
			ProizvodenPogonBusinessService service) {
		super(service);
	}

	@Override
	protected Class<ProizvodenPogonView> getPojoClass() {
		return ProizvodenPogonView.class;
	}

	@Override
	protected ProizvodenPogonView createNewObject() {
		return new ProizvodenPogonView();
	}

	@Override
	protected String getLowerCapitalizedClassName() {
		return "proizvodenPogonView";
	}

	@Override
	protected UIFormModel[] getDetailModels() {
		return new UIFormModel[0];
	}

}
